home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / science / sm32a.zip / SYMBMATH.H61 < prev    next >
Text File  |  1994-03-28  |  5KB  |  99 lines

  1.             8.      Keywords
  2.  
  3.     SymbMath has three versions: Shareware Version A, Student
  4. Version B and Advanced Version C. The shareware version lacks the 
  5. solve(), trig (except sin(x) and cos(x)), and hyerbolic functions, 
  6. (lack 10% keywords) and the student version lacks the hyerbolic
  7. functions (lack 5% keywords). You cannot input these lack functions
  8. in shareware or student version.
  9.     Upper- and lower-case letters are different until the switch
  10. lowercase is set to on (i.e. lowercase := on).
  11.     All keywords are lower-case letters until the switch
  12. lowercase := on.
  13.     There are two types of the keywords: internal and external.
  14. The internal keywords have been compiled into the SymbMath system,
  15. so you cannot change them. The external ones are in files, so you
  16. can change their name or property. Usages of both types are the same.
  17.     The following only includes the internal and some external 
  18. keywords. You can define your own keyword and add your defined function. 
  19. If some keywords do not work, you should check whether or not the
  20. libraries *.(x) are in the default directory.
  21.  
  22.  
  23.          8.1        Keywords in Topic Order
  24. ---------------------------------------------------------------------
  25. 1. Algebraic operators: +, -, *, /, ^, **, ().
  26. 2. Relational operators: ==, >, >=, <, <=, <>.
  27. 3. Assignments: :=
  28. 4. Equation: solve(x^2=1,x), solve([x+y=b,x-y=c], [x,y]), psolve(f(x),x),
  29.              nsolve(cos(x)=x,x), nsolve(f(x)=0,x,x0),
  30.              dsolve(y'(x)=f(x,y), y(x),x), =.
  31. 5. Comment: #.
  32. 6. Built-in constants: i, e, pi, inf, zero, constant, discont, c_inf,
  33.     undefined.
  34. 7. Built-in variables: last.
  35. 8. Logic operators: and, or, not(x).
  36. 9. Algebraic functions: -x, sqrt(x), n!, fac(n), mod(x,y), div(x,y),
  37.     random(x), expand(x), factor(x), factor(y,x), root(x,n).
  38. 10. Complex to real: re(x), im(x), abs(x), |x|, arg(x), sign(x).
  39. 11. Exponential functions: exp(x), ln(x), log10(x).
  40. 12. Trig functions: sin(x), cos(x), tan(x), csc(x), sec(x), cot(x), 
  41.     asin(x), acos(x), atan(x), acot(x), asec(x), acsc(x), atan2(x,y).
  42. 13. Hyperbolic functions: sinh(x), cosh(x), tanh(x), csch(x), sech(x),
  43.     coth(x), asinh(x), acosh(x), atanh(x), acoth(x), acsch(x),
  44.     asech(x).
  45. 14. Special math functions: ei(x), ei(n,x), gamma(x), gamma(n,x), erf(x),
  46.     si(x), ci(x), li(x), li(n,x).
  47. 15. Defining functions: f(x_):=x^2, f(x_) := if(x>0 then x^2).
  48. 16. Defining procedures: f(x_):=block(p:=x^2,p,local(p))
  49. 17. Defining rules: log(x_ * y_) := log(x)+log(y), f'(x_):=sin(x).
  50. 18. Clear: clear(x), clear(f(x)), clear(a>0).
  51. 19. Calculus functions: 
  52.     Differentiating: d(y,x), d(y,x,n),  diff(y,x=x0), diff(y,x=x0,n), f'(x)
  53.     Integrating:     inte(y,x), inte(y,x,xmin,xmax), ninte(y,x,xmin,xmax),
  54.     Substituting:    subs(y,x=x0)
  55.     Limit:           lim(y,x=x0), lim(y,x=x0+zero), nlim(y, x=x0),
  56.         laplace(y,x), sum(y, x,xmin,xmax,dx), partsum(y,x), infsum(y,x),
  57.     prod(y, x,xmin,xmax,dx), series(y,x), series(y,x,order).
  58. 20. Conversion functions:
  59.         ratio(x), round(x), trunc(x), nume(a/b), deno(a/b), table(y,x),
  60.         number(x), string(x), term(a+b), mult(a*b), type(x).
  61. 21. Numeric computation: num(x), nsolve(cos(x)=x,x), nsolve(cos(x)=x,x,x0),
  62.         ninte(y,x,xmin,xmax), nlim(y,x=x0), numeric:=on.
  63. 22. Test functions: isodd(x), iseven(x), isinteger(x), isratio(x),
  64.         isreal(x), iscomplex(x), isnumber(x), islist(x), isfree(y,x),
  65.         issame(x), islarger(a,b), isless(a,b), type(x)=="real".
  66. 23. Table: table(y,x), table(y, x,xmin,xmax,dx).
  67. 24. Arrays and array index: a[1]:=1, do(a[x]:=x, x,xmin,xmax,dx), a[1].
  68. 25. Lists and list index: [a,b], [list(y,x,xmin,xmax)], member([a],j),
  69.           last[1], reverse([x]).
  70. 26. Statistics: average([a,b]), max([a,b]), min([a,b]), listsum([a,b]),
  71.                 length([a,b]).
  72. 27. Switches: numeric, output, expand, expandexp, lowercase,
  73.     :=, on, off, basic, fortran, prolog, math.
  74. 28. DOS Commands: system("dir").
  75. 29. Comma: , , from, to, step, then, else, until.
  76. 30. Assume: assume(a>0), isreal(x):=1.
  77. 31. Conditional: if(x>0 then x), if(x>0 then x else -x).
  78. 32. Loop: repeat(expr until x>5), do(expr, x,xmin,xmax,dx),
  79.           list(y,x,xmin,xmax).
  80. 33. Reading: readfile("file"), readchar, readline.
  81. 34. Writing: openfile("file"), closefile("file"), writes(x), null, newline.
  82. 35. Plot: plot(x^3,x), plot(y,x,min,xmax), plot(y,x,xmin,xmax,ymin,ymax),
  83.     dotplot(x^3,x), dotplot(y,x,min,xmax), dotplot(y,x,xmin,xmax,ymin,ymax),
  84.     paraplot(x(t),y(t),t), paraplot(x(t),y(t),t,t1,t2), polaplot(r(t),t),
  85.     polaplot(r,t,tmin,tmax), dataplot([x1,x2],[y1,y2]), listplot([y1,y2]).
  86. 36. Graph: graph, text, line(x1,y1,x2,y2), lineto(x,y), linerel(dx,dy),
  87.            ellipse(x,y,), putpixel(x,y,color), moveto(x,y), moverel(dx,dy),
  88.            arc(x,y,r,t1,t2), getmaxx, getmaxy, setcolor(white),
  89.            setbkcolor(red), setviewport(x1,y1,x2,y2,clip),
  90.         setlinestyle(style,dir,thick), settextstyle(font,dir,size),
  91.         circle(x,y,r), oval(x,y,xr,yr), settextjustify(hor,ver),
  92.         getx, gety, getbkcolor, getcolor.
  93. 37. String: "123", concat("a","b"), break("ab",1), length("a"), string(1).
  94. 38. Getting parts: type(x), left(a=b), right(a=b), term(a+b), mult(a*b),
  95.             coef(y,x), coef(y,x,n), coefall(y,x), power(x^n), base(x^n),
  96.             argue(x), sequence(x), re(x), im(x), int(x), frac(x).
  97. 39. Database: phoneno(x), colorno(x), atom_wei(x)
  98. --------------------------------------------------------------------------
  99.